function changebtn(obj) {
//	id = obj.id;
//	document.getElementById(id).parent().style.backgroundColor = "#EECFA1";
//	$(obj).parent().backgroundColor = "#cc0000";
	var text = $(obj).find("span").text();
	if(text=="加入对比"){
		$(obj).parent().css("background","grey");
		/*$(obj).parent().attr("class","span1");*/
		$(obj).find("span").text('已加入');
	}
	if(text=="已加入"){
		$(obj).parent().css("background","#ddd !important");
		/*$(obj).parent().attr("class","span1");*/
		$(obj).find("span").text('加入对比');
	}
}


function changebtn_index(obj) {
	var ttext = $.trim($(obj).text());
	if(ttext=="加入对比"){
		$(obj).attr("class","btn grey");
		
		$(obj).html('<i class="icon-remove"></i> 已加入');
		
	}
	
	if(ttext=="已加入"){
		$(obj).attr("class","btn blue");
		$(obj).html('<i class="icon-plus"></i> 加入对比');
	}
}